package com.zg.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zg.dao.TagMapper;
import com.zg.pojo.Tag;
import com.zg.service.TagService;

@Service("tagService")
public class TagServiceImpl implements TagService {
	
	@Resource
	private TagMapper tagServiceDao;

	@Override
	public Tag getTagById(int id) {
		return this.tagServiceDao.selectByPrimaryKey(id);
	}

	@Override
	public int insert(Tag tag) {
		return this.tagServiceDao.insert(tag);
	}

	@Override
	public int updatePrimaryKeySelective(Tag tag) {
		return this.tagServiceDao.updateByPrimaryKeySelective(tag);
	}

	@Override
	public int deletePrimaryKey(int id) {
		return this.tagServiceDao.deleteByPrimaryKey(id);
	}

	@Override
	public List<Tag> getAll() {
		return this.tagServiceDao.getAll();
	}
	
	
}
